modernize units (#969)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Mon, 2 Jan 2023 18:11:23 +0000 (11:11 -0700)
committerGitHub <noreply@github.com>
Mon, 2 Jan 2023 18:11:23 +0000 (11:11 -0700)
commit0ccae9f587d8151017f88609f3d4fb02b7cdda06
treeeb06abb327ab25d29d9e6cabe7ec2eeabc6ea047
parent70e7f1aa6d1c742e132373f38a18e0f70c1a89df
modernize units (#969)

* modernize units

fmt_* returns a std::pair of the value and the units.
use structured binding to unpack the pair.
use scoped enumeration for the units system.

* make units formatter a class.

* cleanup unitsformatter instance.
kml.cc
kml.h
units.cc
units.h